package com.example.LifeCycle.InitializingBean;

import com.example.LifeCycle.commons.Car;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description TODO
 * @Date 2024/5/15 11:02
 * @Created by houjunfeng
 */
@Configuration
public class InitializingBeanConfigeration {
    @Bean(name="Car")
    public Car getCar(){
        return  new Car();
    }
}
